package edu.gatech.cc.CFAWaffleFriesWheresMyStuff.common;

/**
 ** The Adin object class. Holds and operates on a Admin's personal information.
 ** @author Dakota Lindsey
 */
public class Admin extends User {
	
	/**
	 * Constructs a new Admin instance from the given set of information
	 * @param username The username for this user
	 * @param password The password for this user
	 * @param name The real name for this user
	 * @param phonenumber The phone number for this user
	 * @param email The email for this user
	 * @param loginAttempts TODO
	 * @param isLocked TODO
	 */
	public Admin(String username, String password, String name, String phonenumber, String email)
    {
    	_username = username;
    	_password = password;
    	_name = name;
    	_phoneNumber = phonenumber;
    	_email = email;
	}
	
	/**
	 * Constructs a new Admin instance from the given set of information
	 * @param username The username for this user
	 * @param password The password for this user
	 * @param name The real name for this user
	 * @param phonenumber The phone number for this user
	 * @param email The email for this user
	 */
	public Admin(String username, String password, String name, String phonenumber, String email, int loginAttempts, boolean isLocked)
    {
    	_username = username;
    	_password = password;
    	_name = name;
    	_phoneNumber = phonenumber;
    	_email = email;
    	_loginAttempts = loginAttempts;
    	_isLocked = isLocked;
	}
	
	/**
     * Used to determine admin access.
     * @return true
     */
    public boolean isAdmin(){
    	return true;
    }
}
